//  获取角色功能模块返回数据

var roleData = {
  code: "1",
  message: "成功",
  result: [
    {
      id: "1",
      label: "安全管理",
      parentId: "null"
    },
    {
      id: "11",
      label: "安全管理子功能",
      parentId: 1
    }
  ]
};

//  登陆后，获取权限接口返回数据
var menuData = {
  code: "1",
  message: "成功",
  result: [
    {
      resultCode: 0,
      resultMsg: "",
      resultObj: [
        {
          label: "首页展示",
          icon: "index"
        },
        {
          label: "资产管理",
          icon: "asset_manage",
          children: [{ label: "资产管理",icon:"", href: "/asset_manage/asset_manage" }]
        },
        {
          label: "监控配置",
          icon: "monitor_config",
          children: [
            { label: "监控器配置", href: "/monitor_config/monitor_config" },
            {
              label: "依赖关系配置",
              href: "/monitor_config/monitor_dependency_config"
            },
            { label: "脆弱性扫描", href: "/monitor_config/vulner_scan" },
            { label: "拓扑发现", href: "/monitor_config/topology_discover" },
            {
              label: "日志发生源配置",
              href: "/monitor_config/log_occur_source_config"
            }
          ]
        },
        {
          label: "安全管理",
          icon: "sec_manage"
        },
        {
          label: "监控对象",
          icon: "monitor_obj",
          children: [{ label: "监控器", href: "/monitor_obj/monitor" }]
        },
        {
          label: "事件告警",
          icon: "event_alarm",
          children: [
            { label: "安全事件", href: "/event_alarm/sec_event_analy" },
            { label: "故障事件", href: "/event_alarm/fault_event_analy" },
            { label: "性能事件", href: "/event_alarm/perform_event_analy" },
            { label: "日志统计", href: "/event_alarm/log_statistics" },
            { label: "原始日志查询", href: "/event_alarm/original_log_query" }
          ]
        },
        {
          label: "策略管理",
          icon: "policy_manage",
          children: [
            { label: "事件通知策略", href: "/policy_manage/event_notice_policy" },
            { label: "事件忽略策略", href: "/policy_manage/event_ignore_policy" },
            { label: "事件生成策略", href: "/policy_manage/event_create_policy" },
            { label: "日志过滤策略", href: "/policy_manage/log_filter_policy" },
            { label: "日志报警策略", href: "/policy_manage/alarm_event_policy" }
          ]
        },
        {
          label: "基础资源维护",
          icon: "base_resource_mant",
          children: [
            { label: "资产类型", href: "/base_resource_mant/asset_type" },
            { label: "管控域", href: "/base_resource_mant/control_domain" },
            { label: "SNMP管理", href: "/base_resource_mant/snmp_manage" },
            { label: "服务器配置", href: "/base_resource_mant/server_config" }
          ]
        },
        {
          label: "系统设置",
          icon: "sys_manage",
          children: [
            { label: "用户管理", href: "/sys_config/user_manage" },
            { label: "角色管理", href: "/sys_config/role_manage" },
            { label: "服务配置", href: "/sys_config/server_config" }
          ]
        },
        {
          label: "Demo展示",
          icon: "demo_show",
          children: [
            { label: "Grid", href: "/demo_show/demo_grid" },
            { label: "表单", href: "/demo_show/demo_form" },
            { label: "Tree", href: "/demo_show/demo_tree" }
          ]
        }
      ]
    }
  ]
};
